/**
 * Created by shaotingzhou on 2017/5/17.
 */
import React, { Component } from 'react';
import {
    AppRegistry,
    StyleSheet,
    Text,
    View,
    ListView,
    Image,
    TouchableOpacity,
    Platform
} from 'react-native';
import OrderDetails from './OrderDetails/orderDetails'


export default class DealManageItem extends Component{
    render() {
        return (
            <TouchableOpacity onPress={()=>this.selectedItem()} >

                <View>
                    <Text style={{fontSize:15,marginLeft:5,marginTop:5}}>成交日期: 2017.04.11 11:23:22</Text>
                    <View style={{marginTop:15,marginBottom:15,marginLeft:5}}>
                        <Text style={{fontSize:14,color:'#BDBDBD'}}>摘要: 合同款</Text>
                        <View style={{flexDirection:'row'}}>
                            <Text style={{fontSize:14,color:'#BDBDBD'}}>付款人: 华纳唱片</Text>
                            <Text style={{fontSize:14, color:'rgba(135,195,74,1.0)',marginLeft:60}}>金额: 122345</Text>
                        </View>
                        <Image source={require('../../image/右箭头.png')} style={{width:20,height:15,position:'absolute',right:10}} />
                    </View>

                    <View style={{height:1,backgroundColor:'#BDBDBD'}}></View>
                </View>
            </TouchableOpacity>

        );
    }

    selectedItem = ()=>[
        this.props.navigator.push({
            component:OrderDetails
        })
    ]

};


var styles = StyleSheet.create({
    container: {
        flex: 1,
        backgroundColor: '#F5FCFF',
    },
    welcome: {
        fontSize: 20,
        textAlign: 'center',
        margin: 10,
    },
    instructions: {
        textAlign: 'center',
        color: '#333333',
        marginBottom: 5,
    }
});

